package com.bailiban.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author zhulang
 * @Classname Consumer1
 * @Description Consumer1
 */
@RabbitListener(queues = "bailiban")
@Component
public class Consumer1 {
    @RabbitHandler
    public void getMsg(String msg) {
        System.out.println("bailiban消费者已接受消息：" + msg);
    }
}
